import {
  createStore,
  combineReducers,
  applyMiddleware
} from 'redux'

import thunk from 'redux-thunk'

import countReducer from './reducers/count_reducer'
import movieReducer from './reducers/movie_reducer'

const allReducer = combineReducers({
  countReducer,
  movieReducer
})

const store = createStore(allReducer, applyMiddleware(thunk))

export default store